
(function(){

//
var StatCom = window.StatCom = function( procFile,sysId,clsId,catClsId )
{

    // 驱动属性
    this.procFile = procFile;
    this.sysId = sysId;
    this.clsId = clsId;
    this.catClsId = catClsId;

    this.sysClsCmd = this.sysId+"/"+this.clsId;
    this.sysClsId = this.sysId + "_" + this.clsId;
    this.sysCatClsCmd = this.sysId+"/"+this.catClsId;

    // 建立页面框架
    this.topPage = $("#Column-B");

    // 读取某系统的框架
    this.page = $("#"+this.sysId).clone();
    if( 0 < this.page.length )
    {
        this.page[0].id = sysId + "_clone";         //防止跟模板的id混淆
    }

    // 框架的三个主要元素
    this.header = this.page.find(".header");
    this.footer = this.page.find(".footer");
    this.main   = this.page.find(".main");
}

StatCom.fn = StatCom.prototype =
{
		listening : function()
		{
        if( false == Command.allowAccess( "#"+this.sysClsCmd, location.hash ) ){ return false;  }

        // 将页面框架添加到可视区域
        this.topPage.empty().append( this.page );
        this.footer.empty();
		}
};



})();